package com.qd.pay.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * @author sjk
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_wx_bills")
public class WxBills extends Model<WxBills> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "bid", type = IdType.ASSIGN_ID)
    private String bid;

    @TableField("paytime")
    private LocalDateTime paytime;

    @TableField("mchid")
    private String mchid;

    @TableField("childmchid")
    private String childmchid;

    @TableField("deviceid")
    private String deviceid;

    @TableField("wxorderid")
    private String wxorderid;

    @TableField("orderid")
    private String orderid;

    @TableField("openid")
    private String openid;

    @TableField("trade_type")
    private String tradeType;

    @TableField("result_code")
    private String resultCode;

    @TableField("bank_type")
    private String bankType;

    @TableField("fee_type")
    private String feeType;

    @TableField("total_fee")
    private Double totalFee;

    @TableField("enterprisebonusamount")
    private Double enterprisebonusamount;

    @TableField("t_wx_orderid")
    private String tWxOrderid;

    @TableField("t_orderid")
    private String tOrderid;

    @TableField("t_total_fee")
    private Double tTotalFee;

    @TableField("t_enterprise_amount")
    private Double tEnterpriseAmount;

    @TableField("t_lx")
    private String tLx;

    @TableField("t_zt")
    private String tZt;

    @TableField("body")
    private String body;

    @TableField("attach")
    private String attach;

    @TableField("servicecharge")
    private Double servicecharge;

    @TableField("rate")
    private Double rate;

    @TableField("ordertime")
    private Integer ordertime;

    @TableField("wxorgid")
    private String wxorgid;

    public void freeData() {
        this.bid = null;
        this.paytime = null;
        this.mchid = null;
        this.childmchid = null;
        this.deviceid = null;
        this.wxorderid = null;
        this.orderid = null;
        this.openid = null;
        this.tradeType = null;
        this.resultCode = null;
        this.bankType = null;
        this.feeType = null;
        this.totalFee = null;
        this.enterprisebonusamount = null;
        this.tWxOrderid = null;
        this.tOrderid = null;
        this.tTotalFee = null;
        this.tEnterpriseAmount = null;
        this.tLx = null;
        this.body = null;
        this.attach = null;
        this.servicecharge = null;
        this.rate = null;
        this.ordertime = null;
        this.wxorgid = null;
        this.tZt = null;
    }

}
